<template>
  <view class="content">
    <!-- 图片展示 -->
    <!-- <index :introPic="introPic"></index> -->
    <!-- 文字展示 -->
    <content></content>
  </view>
</template>

<script>
// 产品介绍
import index from "@/components/introduce/index.vue";
import content from "@/components/introduce/content.vue";
// 引入请求模块
import { getRequest } from "@/api/api.js";
// 引入url
import { introPic } from "@/api/request.js";

export default {
  name: "",
  components: {
    index,
    content,
  },
  onLoad() {
    // 获取产品图片
    this.getIntroPic();
  },
  data() {
    return {
      introPic: [],
    };
  },
  methods: {
    async getIntroPic() {
      await getRequest(introPic)
        .then((result) => {
          this.introPic = result[1].data.data;
        })
        .catch((err) => {
          console.log(err);
        });
    },
  },
};
</script>

<style lang="scss" scoped>
.content {
  height: 100vh;
  background-color: aliceblue;
}
</style>